﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html lang="en">
<head>
    <title></title>

    <link href="/Content/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="/Content/assets/css/font-awesome.min.css" />

    <!--[if IE 7]>
      <link rel="stylesheet" href="/Content/assets/css/font-awesome-ie7.min.css" />
    <![endif]-->
    <!-- page specific plugin styles -->
    <!-- fonts -->
    <!-- ace styles -->

    <link rel="stylesheet" href="/Content/assets/css/ace.min.css" />
    <link rel="stylesheet" href="/Content/assets/css/ace-rtl.min.css" />
    <link rel="stylesheet" href="/Content/assets/css/ace-skins.min.css" />
    <link href="/Content/poshytip/tip-yellow/tip-yellow.css" rel="stylesheet" />
    <link href="/Content/JAlert.css" rel="stylesheet" />
    <link href="/Content/uploadify.css" rel="stylesheet" />
    <link href="~/Content/My97DatePicker/skin/WdatePicker.css" rel="stylesheet" />
    <!--[if lte IE 8]>
      <link rel="stylesheet" href="/Content/assets/css/ace-ie.min.css" />
    <![endif]-->
    <!-- inline styles related to this page -->
    <!-- ace settings handler -->

    <script src="/Content/assets/js/ace-extra.min.js"></script>

    <script src="/Content/assets/js/jquery-2.0.3.min.js"></script>
    <script src="/Content/assets/js/bootstrap.min.js"></script>
    <script src="/Content/assets/js/typeahead-bs2.min.js"></script>
    @*<script src="/Content/assets/js/jquery-ui-1.10.3.custom.min.js"></script>*@
    <script src="/Content/assets/js/jquery.ui.touch-punch.min.js"></script>
    <script src="/Content/assets/js/jquery.slimscroll.min.js"></script>
    <script src="/Content/assets/js/jquery.easy-pie-chart.min.js"></script>
    <script src="/Content/assets/js/jquery.sparkline.min.js"></script>
    <script src="/Content/assets/js/flot/jquery.flot.min.js"></script>
    <script src="/Content/assets/js/flot/jquery.flot.pie.min.js"></script>
    <script src="/Content/assets/js/flot/jquery.flot.resize.min.js"></script>
    <script src="/Content/assets/js/jquery.nestable.min.js"></script>
    <!-- ace scripts -->
    <script src="/Content/assets/js/ace-elements.min.js"></script>
    <script src="/Content/assets/js/ace.min.js"></script>
    <script src="/Scripts/jquery.alerts.js"></script>
    <script src="/Scripts/jquery.DOMWindow.js"></script>

    <script src="/Content/poshytip/jquery.poshytip.js"></script>
    <script src="/Scripts/jquery.validate.js"></script>
    <script src="/Scripts/jquery.validate.unobtrusive.js"></script>


    <script src="/Scripts/jquery.uploadify.js"></script>
    <script src="/Content/My97DatePicker/WdatePicker.js"></script>
    <script src="/Scripts/WZTValidator.js"></script>
    <script src="/Scripts/WZTPage.js"></script>
    <script>
        function WZTLabDelete(url, data, msg, confirm) {
            var isconfirm = true;
            if (confirm != undefined) {
                isconfirm = false;
            }
            if (isconfirm) {
                if (msg == undefined || msg == "" || msg == null)
                    msg = "您确定要删除吗？"
                jConfirm(msg, "提示", function (r) {
                    if (r) {
                        $.ajax({
                            type: "post",
                            data: data,
                            dataType: 'json',
                            cache: false,
                            url: url,
                            success: function (data) {
                                if (data) {
                                    jAlert("操作成功", "提示", function () {
                                        window.location.href = window.location.href;
                                    })
                                }
                                else {
                                    jAlert("操作失败", "提示");
                                }
                            },
                            error: function () {
                                jAlert("操作失败,请检查是否关联其他数据或检查网络", "提示")
                            }
                        });
                    }
                })
            }
            else {
                $.ajax({
                    type: "post",
                    data: data,
                    dataType: 'json',
                    cache: false,
                    url: url,
                    success: function (data) {
                        if (data) {
                            jAlert("操作成功", "提示", function () {
                                window.location.href = window.location.href;
                            })
                        }
                        else {
                            jAlert("操作失败", "提示");
                        }
                    },
                    error: function () {
                        jAlert("操作失败,请检查是否关联其他数据或检查网络", "提示")
                    }
                });
            }
        }
        $(function () {
            $('table th input:checkbox').on('click', function () {
                var that = this;
                $(this).closest('table').find('tr > td:first-child input:checkbox')
                .each(function () {
                    this.checked = that.checked;
                    $(this).closest('tr').toggleClass('selected');
                });

            });
        })
    </script>
</head>
<body>
    <div class="container" id="main-container">
        <script type="text/javascript">
            try { ace.settings.check('main-container', 'fixed') } catch (e) { }
        </script>
        <div class="row">
            <div class="col-xs-12">
                @RenderBody()
            </div>
        </div>
    </div>
</body>
</html>

